import type { VbenFormProps } from '@vben/common-ui';

import type { ComponentType } from '#/adapter/component';

import { $t } from '#/locales';

// 表单参数定义
export const formSchamas: VbenFormProps<ComponentType> = {
  wrapperClass: 'grid-cols-12', // 24栅格,
  layout: 'vertical',
  commonConfig: {
    formItemClass: 'col-span-12',
  },
  schema: [
    {
      fieldName: 'token',
      label: $t('devOperation.sop.sopDocApp.token'),
      component: 'Input',
      help: () => {
        return (
          <>
            参考：{' '}
            <a
              href="https://www.yuque.com/u1604442/sop/fb0kysla6mr4bm0l"
              target="_blank"
            >
              SOP文档
            </a>
          </>
        );
      },
      componentProps: {
        placeholder: `请填写${$t('devOperation.sop.sopDocApp.token')}`,
      },
      formItemClass: 'col-span-12',
    },
  ],
};
